package com.jijuxie.house.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jijuxie.house.domain.HouseImage;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface IHouseImageService extends IService<HouseImage> {

    /**
     * 上传单张图片
     */
    HouseImage uploadImage(MultipartFile file, Long houseId, String imageType) throws IOException;

    void deleteImage(Long imageId);

    void updateSort(Long imageId, Integer sort);
}
